package com.cbtx.tablet.ui

import android.content.Intent
import android.os.Bundle
import com.blankj.utilcode.util.SPUtils
import com.cbtx.tablet.R

class SplashActivity : AbsBaseActivity() {

    override fun layoutId(): Int = R.layout.activity_splash

    override fun initView(savedInstanceState: Bundle?) {
        if (SPUtils.getInstance().getBoolean("isBind")) {
            startActivity(Intent(this, MainActivity::class.java))
        } else {
            startActivity(Intent(this, StartActivity::class.java))
        }
        finish()
    }

    override fun initData(savedInstanceState: Bundle?) {

    }

}